package com.zhangxu.microservice.auth.vo.req;

import com.zhangxu.microservice.auth.common.enums.ResourceStatusEnum;
import com.zhangxu.microservice.auth.common.enums.ResourceTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 资源查询请求
 */
@Data
@Schema(description = "资源查询请求")
public class ResourceQueryReq {

    @Schema(description = "所属系统ID", example = "1")
    private Long systemId;

    @Schema(description = "父资源ID", example = "0")
    private Long parentId;

    @Schema(description = "资源名称", example = "用户管理")
    private String name;

    @Schema(description = "资源编码", example = "USER_MANAGE")
    private String code;

    @Schema(description = "资源类型：MENU/BUTTON/API", example = "MENU")
    private ResourceTypeEnum type;

    @Schema(description = "资源状态：ENABLE-启用、DISABLE-禁用、INIT-新建", example = "ENABLE")
    private ResourceStatusEnum status;

    @Schema(description = "是否可见：false-隐藏，true-可见（对菜单类有效）", example = "true")
    private Boolean visible;
}